package com.encyclopedia.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @author MaLiang
 * @version 1.0
 * @date 2024-04-29 18:48
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Plant {

    private Integer id;

    private String commonName;

    private String scientificName;

    private Integer familyId;

    private Integer genusId;

    private String description;

    private Integer breedId;

    private Integer ectopeId;

    private Integer growthCharacteristicId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime dateAdded;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime lastUpdated;
}
